home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_ambsouthpass.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  90 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_AmbSouthPass.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     startup
  13.     message        entered
  14.     message     pulse
  15.  
  16.     thing        soundPos0        nolink
  17.     thing        soundPos1        nolink
  18.     thing        soundPos2        nolink
  19.     thing        soundPos3        nolink
  20.     
  21.     sector      on_sec1         linkID=1
  22.     sector      on_sec2         linkID=1
  23.     
  24.     sector      off_sec1        linkID=0
  25.     sector      off_sec2        linkID=0
  26.  
  27.     sound        enhanced0=sol_ambient01_a.wav   local
  28.     sound        enhanced1=sol_ambient02_a.wav   local
  29.     sound        enhanced2=sol_ambient03_a.wav   local
  30.     sound        enhanced3=sol_ambient04_a.wav   local
  31.     sound        enhanced4=sol_ambient05_a.wav   local
  32.     sound        enhanced5=nub_ambient4_a.wav    local
  33.     
  34.     sound       basic0=nub_ambient1_a.wav   local
  35.     sound       basic1=nub_ambient2_a.wav   local
  36.     sound       basic2=nub_ambient3_a.wav   local
  37.     
  38.     int            sndNum            local
  39.     int            numPos=4        local
  40.     int            count           local
  41.  
  42. end
  43.  
  44. # ========================================================================================
  45.  
  46. code
  47.  
  48. startup:
  49.  
  50.     global4 = 0;
  51.     return;
  52.  
  53. # ========================================================================================
  54.  
  55. entered:
  56.  
  57.     if(GetSenderID() == 1)
  58.     {
  59.         setpulse(2.0);
  60.     }
  61.     
  62.     if(GetSenderID() == 0)
  63.     {
  64.         SetPulse(0.0);
  65.     }
  66.     
  67.     return;
  68.  
  69. # ========================================================================================
  70.  
  71. pulse:
  72.  
  73.     # no commies yet
  74.     if(global4 == 0)
  75.     {
  76.         PlaySoundThing(basic0[RandBetween(0, 2)], soundPos0[RandBetween(0, 3)], 1.0, -1, -1, 0);
  77.     }
  78.     
  79.     # commies are driving around
  80.     else if(global4 == 1)
  81.     {
  82.         PlaySoundThing(enhanced0[RandBetween(0, 5)], soundPos0[RandBetween(0, 3)], 1.0, -1, -1, 0);
  83.     }
  84.     
  85.     return;
  86.  
  87. # ========================================================================================
  88.  
  89. end
  90.